package com.woniuxy.ticket.controller;

import com.woniuxy.ticket.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UserController {

    @Autowired
    private UsersService usersService;

    @GetMapping("list")
    public ResponseEntity  list(){
        return ResponseEntity.ok(usersService.list());
    }


}
